package Game.Players.Units;

public class Unit {

    protected String name;
    protected int health;
    protected int level;
    protected int squadSize;

    public Unit() {
        name = "";
        health = 0;
        level = 0;
        squadSize = 0;
    }

    public int getHealth() {
        return health;
    }

    public void setHealth(int a) {
        health = (a < 0 ? 0 : a);
    }

    public String getName() {
        return name;
    }

    public void setName(String s) {
        name = s;
    }

    public int getLevel() {
        return level;
    }

    public void setSquadSize(int a) {
        squadSize = (a < 0 ? 0 : a);
    }

    public int getSquadSize() {
        return squadSize;
    }
}
